import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import get from '@dfeidao/atom-web/local/get';
import nodejs from '@dfeidao/atom-web/msg/nodejs';
import refresh from '@dfeidao/atom-web/url/refresh';
export default async function a002(fd: IFeidaoAiBrowserComponent) {// 删除操作
	// todo
	console.log('zj-000007:a002----start');
	const nos = get(fd, 'nos') as string[];
	const res = await nodejs<{ code: 0 | 1; result: string }>('wyf/zj-000007/s001', {
		hidden_source_feature_no: nos
	});
	if (res.code === 1) {
		alert('删除成功');
		refresh();
	} else {
		alert('删除失败');
	}
	console.log('zj-000007:a002----end');
}

